﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="@Url.Content("~/plugin/css/pikaday.css")">
<link rel="stylesheet" href="@Url.Content("~/plugin/css/site.css")">
<script src="@Url.Content("~/plugin/moment.min.js")"></script>
<script src="@Url.Content("~/plugin/pikaday.js")"></script>

@model PessModel.Activity

@{
    ViewBag.Title = "编辑活动信息";
}
 
<div id="m-title">
    <h2>编辑活动信息</h2>
    <div id="m-op">
        @Html.ActionLink("返回活动列表", "Details", new { id = Model.ID }, new { @class="f-btn-long"})
    </div>
</div>
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset class="edit">

        @Html.HiddenFor(model => model.ID)

        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.Name)*@活动名称： 
            </span>
            @Html.EditorFor(model => model.Name, new { @class="f-it-long"})
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="m-inline">
            <span class="f-lg-gs">
                @*@Html.LabelFor(model => model.Description)*@概&#8195;&#8195;述：
            </span>
            @Html.TextAreaFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="m-inline">
            <span class="f-lb-w">
                @*@Html.LabelFor(model => model.StartDate)*@开始日期：
                <input type="text" id="StartDate" name="StartDate" value="@Html.DisplayFor(model => model.StartDate)">
                @Html.ValidationMessageFor(model => model.StartDate)
            </span>

            <span>
                @*@Html.LabelFor(model => model.DueDate)*@结束日期：
                <input type="text" id="DueDate" name="DueDate" value="@Html.DisplayFor(model => model.DueDate)">
                @Html.ValidationMessageFor(model => model.DueDate)
            </span>
        </div>

        <div class="m-inline">
            <span class="f-lb-w">
                @*@Html.LabelFor(model => model.UploadStartDate)*@档案上传开始日期：
                <input type="text" id="UploadStartDate" name="UploadStartDate" value="@Html.DisplayFor(model => model.UploadStartDate)">
                @Html.ValidationMessageFor(model => model.UploadStartDate)
            </span>

            <span>
                @*@Html.LabelFor(model => model.UploadDueDate)*@档案上传结束日期：
                <input type="text" id="UploadDueDate" name="UploadDueDate" value="@Html.DisplayFor(model => model.UploadDueDate)">
                @Html.ValidationMessageFor(model => model.UploadDueDate)
            </span>
        </div>

        <div class="m-inline">
            <span class="f-lb-w">
                @*@Html.LabelFor(model => model.ReviewStartDate)*@评审开始日期：&#8195;&#8195;
                <input type="text" id="ReviewStartDate" name="ReviewStartDate" value="@Html.DisplayFor(model => model.ReviewStartDate)">
                @Html.ValidationMessageFor(model => model.ReviewStartDate)
            </span>

            <span>
                @*@Html.LabelFor(model => model.ReviewDueDate)*@评审结束日期：&#8195;&#8195;
                <input type="text" id="ReviewDueDate" name="ReviewDueDate" value="@Html.DisplayFor(model => model.ReviewDueDate)">
                @Html.ValidationMessageFor(model => model.ReviewDueDate)
            </span>
        </div>

        <div class="m-inline">
            <span class="f-lb-w">
                @*@Html.LabelFor(model => model.AdminYear)*@行政年度：
@*                @Html.EditorFor(model => model.AdminYear)
                @Html.ValidationMessageFor(model => model.AdminYear)*@
                @Html.Hidden("AdminYear", Model.AdminYear)
            </span>
            <span>
                @*@Html.LabelFor(model => model.TypeID, "PessType")*@活动类型：
                @Html.DropDownList("TypeID")
                @Html.ValidationMessageFor(model => model.TypeID)
            </span>
        </div>

        @*<div class="editor-label">
                @Html.LabelFor(model => model.RelatedActivityID, "ProposalActivity")
            </div>
            <div class="editor-field">
                @Html.DropDownList("RelatedActivityID", String.Empty)
                @Html.ValidationMessageFor(model => model.RelatedActivityID)
            </div>*@

        <div class="m-inline">
            <div class="f-lb-w">
                @*@Html.LabelFor(model => model.Status)*@隐藏档案详细：&#8195;&#8195;
                @Html.DropDownList("HideArchiveDetails")
                @Html.ValidationMessageFor(model => model.HideArchiveDetails)
                <p style="width:360px;">
                    设置评委是否可以看到申报人姓名、单位等信息。<br /><br /><br />
                </p>
            </div>
            <div class="f-lb-w">
                @*@Html.LabelFor(model => model.Status)*@状&#8195;&#8195;态：
                @* @Html.EditorFor(model => model.Status)*@
                @Html.DropDownList("Status")
                @Html.ValidationMessageFor(model => model.Status)
                <p style="width:360px;">
                    开放：所有用户可正常访问。<br />
                    关闭：只有管理员可访问，其他用户看不见该活动。<br />
                    完成：区县管理员可查看以往活动的资料；对评委关闭。<br />
                </p>
            </div>
        </div>

        <div class="m-inline">
            <span class="f-lb-w">
                @PessResources.Archive.ProjectTitle：
                @Html.EditorFor(model => model.ArchiveProjectTitleDisplayName)
                @Html.ValidationMessageFor(model => model.Name)
            </span>
            <span>
                @PessResources.Archive.SerialNumber：
                @Html.EditorFor(model => model.ArchiveSerialNumberDisplayName)
                @Html.ValidationMessageFor(model => model.ArchiveSerialNumberDisplayName)
            </span>
        </div>

        <div class="m-inline">
            <span class="f-lb-w">
                @PessResources.Archive.SubjectName：
                @Html.EditorFor(model => model.ArchiveSubjectNameDisplayName)
                @Html.ValidationMessageFor(model => model.ArchiveSubjectNameDisplayName)
            </span>
            <span>
                @PessResources.Archive.CountyName：&#8195;&#8195;
                @Html.EditorFor(model => model.ArchiveCountyNameDisplayName)
                @Html.ValidationMessageFor(model => model.ArchiveCountyNameDisplayName)
            </span>
        </div>

        <div class="m-inline">
            <span>
                @PessResources.Archive.TeacherName：&#8195;
            </span>
            @Html.EditorFor(model => model.ArchiveTeacherNameDisplayName)
            @Html.ValidationMessageFor(model => model.ArchiveTeacherNameDisplayName)
        </div>

        <div class="m-inline">
            <span class="f-lb-w">
                @PessResources.Archive.GradeLevel：&#8195;&#8195;
                @Html.EditorFor(model => model.ArchiveGradeLevelDisplayName)
                @Html.ValidationMessageFor(model => model.ArchiveGradeLevelDisplayName)
            </span>
            <span>
                @PessResources.Archive.SchoolName：
                @Html.EditorFor(model => model.ArchiveSchoolNameDisplayName)
                @Html.ValidationMessageFor(model => model.ArchiveSchoolNameDisplayName)
            </span>
        </div>

        <div class="m-inline">
            <span class="f-lb-w">
                仅限横向总额：&#8195;&#8195;
                @Html.DropDownList("QuotaRowTotalEnabled")
                @Html.ValidationMessageFor(model => model.QuotaRowTotalEnabled)
            </span>
            <span>
                评分页显示档案基本信息：
                @Html.DropDownList("IsArchiveBasicInfoVisible")
                @Html.ValidationMessageFor(model => model.IsArchiveBasicInfoVisible)
            </span>
        </div>

        <div class="m-inline">
            <span class="f-lb-w">
                评分页显示申报表：
                @Html.DropDownList("IsArchiveProfileVisible")
                @Html.ValidationMessageFor(model => model.IsArchiveProfileVisible)
            </span>
            <span>
                评分页显示PDF：
                @Html.DropDownList("IsArchivePDFVisible")
                @Html.ValidationMessageFor(model => model.IsArchivePDFVisible)
            </span>
        </div>

        <div class="m-inline">
            <span class="f-lb-w">
                评分页显示附件：&#8195;
                @Html.DropDownList("IsArchiveAttachmentVisible")
                @Html.ValidationMessageFor(model => model.IsArchiveAttachmentVisible)
            </span>
            <span>
                评分页显示以往评审记录：
                @Html.DropDownList("IsArchiveHistroyVisible")
                @Html.ValidationMessageFor(model => model.IsArchiveHistroyVisible)
            </span>
        </div>

        <div class="m-inline f-ta-ct">
            <input type="submit" value="保存" class="u-btn u-btn-save" />
        </div>
    </fieldset>
}
<script>
        var pikaday1 = new Pikaday({
            field: document.getElementById('StartDate'),
            firstDay: 1,
            minDate: new Date('2005-01-01'),
            maxDate: new Date('2025-12-31'),
            yearRange: [2005,2025],
            onSelect: function () { },
            onOpen: function () {
            }
        });

        var pikaday2 = new Pikaday({
            field: document.getElementById('DueDate'),
            minDate: new Date('2005-01-01'),
            maxDate: new Date('2025-12-31'),
            yearRange: [2005, 2025],
            onSelect: function () { }
        });
        var pikaday3 = new Pikaday({
            field: document.getElementById('UploadStartDate'),
            firstDay: 1,
            minDate: new Date('2005-01-01'),
            maxDate: new Date('2025-12-31'),
            yearRange: [2005, 2025],
            onSelect: function () { }
        });
        var pikaday4 = new Pikaday({
            field: document.getElementById('UploadDueDate'),
            firstDay: 1,
            minDate: new Date('2005-01-01'),
            maxDate: new Date('2025-12-31'),
            yearRange: [2005, 2025],
            onSelect: function () { }
        });
        var pikaday5 = new Pikaday({
            field: document.getElementById('ReviewStartDate'),
            firstDay: 1,
            minDate: new Date('2005-01-01'),
            maxDate: new Date('2025-12-31'),
            yearRange: [2005, 2025],
            onSelect: function () { }
        });
        var pikaday6 = new Pikaday({
            field: document.getElementById('ReviewDueDate'),
            firstDay: 1,
            minDate: new Date('2005-01-01'),
            maxDate: new Date('2025-12-31'),
            yearRange: [2005, 2025],
            onSelect: function () { }
        });
 </script>

@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
